package com.ship.contract.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ship.contract.bean.SpInformation;
import com.ship.contract.mapper.SpInformationMapper;
import com.ship.contract.service.SpInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpInformationServiceImpl extends ServiceImpl<SpInformationMapper, SpInformation> implements SpInformationService {

    @Autowired SpInformationMapper spInformationMapper;


    @Override
    public List<SpInformation> getShipName() {
        return spInformationMapper.getAllShipName();
    }

    @Override
    public String getImo(String vesselName) {
        return spInformationMapper.getImoByVesselName(vesselName);
    }

}
